// 封装与频道相关的操作
import instance from '@/utils/request'

export const reqGetChannels = () => {
  // console.log(123)
  return instance({
    method: 'get',
    url: '/v1_0/user/channels'
  })
}
export const reqGetAllChannels = () => {
  return instance({
    method: 'get',
    url: '/v1_0/channels'
  })
}
export const reqSetChannels = (channels) => {
  return instance({
    method: 'put',
    url: 'v1_0/user/channels',
    data: {
      channels
    }
  })
}
